home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- set HC to the number of cast "handCursor"
- cursor([HC, HC + 1])
- end
-
- on mouseUp
- if (the castNum of sprite the clickOn >= 2) and (the castNum of sprite the clickOn <= 19) then
- set icon to the clickOn
- set placed to 0
- repeat with i = 20 to 37
- if sprite icon intersects i then
- set the locH of sprite icon to the locH of sprite i + 40
- set the locV of sprite icon to the locV of sprite i + 14
- updateStage()
- set placed to 1
- end if
- end repeat
- if not placed then
- set the locH of sprite icon to 600
- updateStage()
- else
- checkLocs()
- end if
- end if
- end
-
- on checkLocs
- global gBackPack
- set allGood to 1
- repeat with i = 2 to 19
- if the locH of sprite i <> word i - 1 of field "hlocs" then
- set allGood to 0
- end if
- if the locV of sprite i <> word i - 1 of field "vlocs" then
- set allGood to 0
- end if
- end repeat
- if allGood then
- repeat with i = 2 to 19
- set the cursor of sprite i to 0
- end repeat
- if getOne(gBackPack, #prize) = 0 then
- add(gBackPack, #prize)
- end if
- go("win")
- end if
- end
-